interface SupplementaryPaymentAPIResData {
  code: number
  msg: string
  time: string
  data: string
}

interface SupplementaryPaymentAPIData {
  id: string
  money: string
}

export function supplementaryPaymentAPI(data: SupplementaryPaymentAPIData, token: string) {
  return httpInstance.post<SupplementaryPaymentAPIResData, SupplementaryPaymentAPIData>(
    '/api/intercity/patchorder',
    data,
    { headers: { token } },
  )
}
